 {% load staticfiles %}
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="{% static '' %}default/css/bootstrap.min.css" rel="stylesheet">
    <link href="{% static '' %}default/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
    <link href="{% static '' %}default/css/style.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
{% include 'default/block_nav.html' %}


<div class="container theme-showcase" role="main">


      <div class="page-header">
        <h1>物流采集 </h1>
      </div>
      <div class="row">
          <form action="" method="POST">
              {% csrf_token %}
        <div class="col-md-12">
            <div class="col-md-2">
            时间：
            <select name="selectDate" id="selectDate">

                <option value="1">昨天</option>
                <option value="2">今天</option>
                <option value="3">7天以内</option>
                <option value="4">30天以内</option>
                <option value="0">全部</option>
                <option value="5">自定义</option>
            </select>
                </div>

            <div id="diyDate" style="display: none;">
            <div class="input-append date col-md-3" id="startDate" data-date="" data-date-format="yyyy-mm-dd">
    从 <input class="" size="16" type="text" name="startDate"  value="">
    <span class="add-on"><i class="icon-th"></i></span>
</div>
                    <div class="input-append date col-md-3" id="endDate" data-date="" data-date-format="yyyy-mm-dd">
    到: <input class="" name="endDate" size="16" type="text" value="">
    <span class="add-on"><i class="icon-th"></i></span>
</div>
        </div>
        </div>


          <div class="col-md-12" style="margin-left: 15px;margin-top: 10px;margin-bottom: 10px;">
              每页：
            <select name="selectPageSize" id="selectPageSize">
                <option value="300">300</option>
                <option value="100">100</option>
                <option value="50">50</option>
                <option value="30">30</option>
            </select>条

          </div>

          <div style="margin-left: 25px;margin-top: 10px;margin-bottom: 10px;">
              <button class="btn btn-success">开始采集</button>
          </div>

              </form>

    </div>
</div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="{% static '' %}default/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{% static '' %}default/js/bootstrap-datetimepicker.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="{% static '' %}default/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">


    $('#selectDate').change(function(){
        //alert();
        var s = $(this).children('option:selected').val();
        if(s == 5){
            //alert('自定义日期');
            $("#diyDate").show();

        }else{
            $("#diyDate").hide();
        }

    });

	$('#startDate').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0,
        pickerPosition:"bottom-right"
    });
    $('#endDate').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0,
        pickerPosition:"bottom-right"
    });

  </script>
  {% include 'default/tongji.html' %}
  </body>
</html>